package com.milk.milkmedia.api;

import org.apache.http.protocol.HTTP;

/**
 * Created by 微安 on 2015/8/27.
 */
public class ConstantField {
    //    定时器500MS
    public static final int TIMER_COUNT = 500;
//    随机播放
    public static final int PLAY_RANDOM = 0x01;
//    复读模式
    public static final int PLAY_REPEAT = 0x02;
//    单曲循环
    public static final int PLAY_SINGLE_LOOP = 0x03;
//    列表播放
    public static final int PLAY_LIST = 0x04;
//    音乐播放模式
    public static int MODE = 0x01 ;
//    播放或者暂停
    public static final String ACTION_PLAY = "PLAY";
//  下一首的动作
    public static final String ACTION_NEXT = "NEXT";
//    前一首
    public static final String ACTION_PREV = "PREV";
//    停止播放
    public static final String ACTION_STOP = "STOP";

    public static final String ACTION_UPDATE = "UPDATE";
    public static final String ACTION = "ACTION";
    public static final String SERVICE_HOST = "http://api4iswust.duapp.com/";
    public static final String API_ENCODING = HTTP.UTF_8;
    public static final String API_VERSION = "1.1";
    public static final String API_EXPIRES = "900000"; // 900秒超时
    public static final String API_HTTP_POST = "POST"; // POST请求
    public static final String API_HTTP_GET = "GET";
    /**
     * 用户电话号码
     */
    public final static String USER_PHONE ="user_phone";
    public final static String USER_NAME ="user_name";
    public final static String USER_PASSWORD="user_password";
    /**
     * 注册
     */
    public static final String API_REGIST = SERVICE_HOST
            + "RegistAction.action";
    /**
     * 登陆平台
     */
    public static final String API_LOGIN = SERVICE_HOST + "LoginAction.action";

    public static  final String APP_KEY  ="abe1e21c9709";
    public static  final String APP_SECRET = "30da0eb99876d08e09eda8c0cb10c1a0";
    public static final String APP_VERSION = "1.0.0";
    public static final String SP_VERSION = "SP_VERSION";
    public static final String SP_FIRST_USE = "frame_first_use";
    public static final String SP_CONFIG= "frame_config";
}
